﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LYWebsite.Helper
{
    public class WeiXinHelper
    {
        public static string GetUrlForGetCode(string appId, string redirectUri, int status=0,string scopeValue = "snsapi_userinfo ")
        {
            return
                String.Format(
                    "https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope={2}&state={3}#wechat_redirect",
                    appId, redirectUri, scopeValue, status);
        }
    }
}